package com.deer.wms.review.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.deer.wms.review.manage.model.CaseMaster;
import com.deer.wms.review.manage.model.CaseMasterCriteria;
import com.deer.wms.review.manage.model.CaseMasterDto;

import java.util.List;

/**
 * Created by guo on 2018/10/24.
 */
public interface CaseMasterService extends IService<CaseMaster> {


    List<CaseMasterDto> findList(CaseMasterCriteria  criteria) ;

     Integer createCase(String billNo, Integer billTypeId,Integer userId,Integer wareId,Integer organizationId);

    //审核
    /*
     * 返回值说明：-1不通过  0-流转中 1-已通过
     *
     * */
    Integer review(Integer caseDetailId, Integer userId,Integer reviewResult,String memo);

    void deleteByBillNo(String billNo);

    CaseMaster findByBillNo(String billNo);
}